/**
 * Created by zhangweidong on 2017/7/7.
 */
import Vue from 'vue';
import VueResource from 'vue-resource';
import common from '../../../assets/js/common';
import tuanList from './tuan-list.vue';
import filter from '../../../assets/js/filter';

Vue.use(VueResource);
filter(Vue);
//登录信息传输到后台
var backUrl = common.isdev()+"/user/checkLogin.htm";        
var hrefUrl = window.location.href;     
if(hrefUrl.indexOf("?userInfo=") > -1){
    backUrl = backUrl + hrefUrl.substring(hrefUrl.indexOf("?userInfo="));
}
var promise = Vue.http.post(backUrl).then(function(d) {
    console.info('success');
}, function(err) {
    console.info('err');
});
promise.then(function ( response ) {
	new Vue({
	    el: '#tuan-List',
	    render: h => h(tuanList)
	});
    // 成功回调
});
// new Vue({
//     el: '#tuan-List',
//     render: h => h(tuanList)
// });
